package com.example.f1.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class Test {

    @GetMapping("/hello")
    @ResponseBody
    @SaCheckLogin
    public String hello(){
        return  "hello f1";
    }
}
